<template>
  <div>
    <div class="address">
      <div>
        <p>您当前所在位置</p>
        <router-link to="/" class="link">新建售后单-团订</router-link>
      </div>
    </div>
    <div class="roder-details">
      <div class="info">
        <h3 class="title">订单信息</h3>
        <div class="list">
          <div class="list-div">
            <div>
              <p>订单编号</p>
              <span>{{ detail.orderSn }}</span>
            </div>
            <div>
              <p>门店名称</p>
              <span>{{ detail.storeName }}</span>
            </div>

            <div>
              <p>下单员工</p>
              <span>{{ detail.empName }}</span>
            </div>

            <div>
              <p>创建时间</p>
              <span>{{ detail.createTime }}</span>
            </div>

            <!--            <div>
                          <p>订单金额</p>
                          <span>{{ detail.orderMoney }}元</span>
                        </div>-->
            <div>
              <p>公司名称</p>
              <span>文康科技</span>
            </div>
            <!--            <div>
                          <p>面料来源</p>
                          <span>{{ detail.fabricSource }}</span>
                        </div>-->
            <!--            <div>
                          <p>订单名称</p>
                          <span>{{ detail.orderName }}</span>
                        </div>-->
            <!--            <div>
                          <p>面料来源</p>
                          <span>{{ detail.businessSource }}</span>
                        </div>-->
            <!--            <div>
                          <p>快递方式</p>
                          <span>{{ detail.courierName }}</span>
                        </div>-->
            <!--            <div>
                          <p>包装方式</p>
                          <span>{{ detail.packageType }}</span>
                        </div>-->

          </div>

        </div>

        <h3 class="title">录入售后</h3>
        <div>

          <label>
            员工工号：
            <a-input placeholder="请输入员工工号" @blur="getSmallProductListByEmpCodeFunc()" v-model="empCode" class="marg20"
                     style="width: 150px;margin-right: 20px;"/>
          </label>

          <label style="width: 238px;margin-right: 20px;">
            选择产品：
            <el-select placeholder="请选择需要售后的产品" style="width:200px" v-model="selectPro"
                       @change="smallProCode = selectPro.smallCode">
              <el-option :label="item.productName" :value="item"
                         v-for="(item,key) in ProList"></el-option>
            </el-select>
          </label>

          <!--          <a-input placeholder="请输入小产品编号" v-model="smallProCode" class="marg20"
                             style="width: 238px;margin-right: 20px;"/>-->
          <label>
            售后类型：
            <a-select v-model="afterType" style="width: 150px;margin-right: 20px;" class="marg20">
              <a-select-option value="0">
                重做
              </a-select-option>
              <a-select-option value="1">
                返修
              </a-select-option>
            </a-select>
          </label>

          <a-button type="primary" class="marg20"
                    @click="getAfterSize(),getFabricList(),getemp(),getAfterPrice()">
            查询
          </a-button>
        </div>

        <h3 class="title">量体尺寸</h3>
        <div class="tabss-content" v-if="afterType==1">
          <!--          <div>
                      <div class="inputs1" v-for="(item,key) in afterBodySize" :key="item.id">
                        <p>{{ item.bodySizename }}</p>
                        <a-input-number style="width: 80px" :max="item.max" :min="item.min" type="text"
                                        v-model="item.value"></a-input-number>
                        <span>{{ item.unit }}</span>
                      </div>
                    </div>-->

          <div class="nrm-six">
            <div v-for="(item,key) in afterBodySize" style="margin: 10px">
              <div class="nrmsi-label">
                {{ item.bodySizename }}
              </div>

              <el-input
                  :controls="false"
                  style="width: 200px"
                  v-model="item.value"
                  :placeholder="'输入范围：'+item.min+'~'+item.max"
                  class="nrms-ipt">
              </el-input>

              <div class="nrmsi-right">
                {{ item.unit }}
              </div>
            </div>
          </div>
        </div>

        <div class="tabss-content" v-if="afterType==0">
          <!--          <div>
                      <div class="inputs1" v-for="(item,key) in afterBodySize" :key="item.id">
                        <p>{{ item.bodySizename }}</p>
                        <a-input-number style="width: 80px" :max="item.max" :min="item.min" type="text"
                                        v-model="item.bodysizeValue"></a-input-number>
                        <span>{{ item.unit }}</span>
                      </div>
                    </div>-->

          <div class="nrm-six">
            <div v-for="(item,key) in afterBodySize" style="margin: 10px">
              <div class="nrmsi-label">
                {{ item.bodySizename }}
              </div>

              <el-input
                  :controls="false"
                  style="width: 200px"
                  v-model="item.bodysizeValue"
                  placeholder="请输入内容"
                  class="nrms-ipt">
              </el-input>

              <div class="nrmsi-right">
                {{ item.unit }}
              </div>
            </div>
          </div>

        </div>

        <div v-if="afterType == 0">
          <h3 class="title">面料</h3>
          <div class="table-css">

            <a-table class="table1" lign="center" :columns="fabricTitle" :data-source="fabricList"
                     :pagination="false">
              <a slot="k7" slot-scope="text" style="color:#C49D18">{{ text }}</a>
              <a slot="k6" slot-scope="text" style="color:#C49D18">{{ text }}</a>

              <a-input-number style="width: 50%" @blur="getAfterFabricPrice(record)" slot-scope="text,record"
                              slot="k3" :min="0" :precision="1"
                              v-model="record.mishu" placeholder="输入米数"></a-input-number>
            </a-table>
          </div>
        </div>

        <h3 class="title">售后原因</h3>
        <div style="width:530px;margin-top:10px;margin-bottom: 10px;">
          <a-textarea v-model="reason" placeholder="请填写售后原因" :rows="4" :auto-size="{ minRows: 3, maxRows: 5 }"/>
        </div>

        <!--上传图片-->
        <el-upload
            style="margin-top: 20px;"
            action="https://api.nbyid.cn/mlcc/user/interface/uploadImage"
            list-type="picture-card"
            :limit="1"
            :on-exceed="handleExceed"
            :on-preview="handlePictureCardPreview"
            :on-remove="handleRemove"
            :on-success="handleSuccess"
            ref="upload">
          <i class="el-icon-plus"></i>
        </el-upload>
        <el-dialog :visible.sync="dialogVisible">
          <img width="100%" :src="dialogImageUrl" alt="">
        </el-dialog>

        <!--<a-upload action="https://www.mocky.io/v2/5cc8019d300000980a055e76" list-type="picture-card"
                  :file-list="fileList"
                  @preview="handlePreview" @change="handleChange">
            <div v-if="fileList.length < 8">
                <a-icon type="plus"/>
                <div class="ant-upload-text">
                    Upload
                </div>
            </div>
        </a-upload>-->
        <div>
          <p class="btn-a" @click="saveAfterSize(),getAfterPrice(),getemp()">保存</p>
        </div>

        <h3 class="title">售后员工列表</h3>
        <!--员工列表-->
        <div class="table-css" style="margin-top: 20px;">
          <a-table class="table1" lign="center" :columns="emp" :data-source="emplist">
            <a slot="k7" slot-scope="text" style="color:#C49D18">{{ text }}</a>
          </a-table>
        </div>

        <h3 class="title">售后金额</h3>
        <div class="list">
          <div class="list-div">
            <div>
              <p>售后金额</p>
              <span v-if="myflag" class="b">请点击计算</span>
              <span v-if="!myflag" class="b">{{ lastAfterPrice }}元</span>
            </div>

          </div>

        </div>
        <el-button type="success" @click="updateOrder">提交返修</el-button>
        <el-button type="primary" @click="checkAfterPriceFunc">计算价格</el-button>
      </div>
    </div>

    <!--支付界面弹窗-->
    <el-drawer
        class="el-drawer__body"
        title="详细"
        size="40%"
        :with-header="false"
        :visible.sync="drawer"
        :direction="direction">
      <div style="height: 30px;line-height: 30px;left: 10px;padding-left: 26px;margin-top: 16px;">
        <i class="el-icon-s-order" style="font-size: 16px;">订单结算</i>
      </div>

      <div style="margin-top: 12px;"><span
          style="color: #ADADAD;font-size: 14px;margin-left: 26px;">支付金额（元）</span></div>
      <div style="margin-top: 12px;"><span
          style="color: #333333;font-size: 18px;margin-left: 26px;">{{ lastAfterPrice }}</span>
      </div>
      <div style="margin-top: 36px;"><span style="color: #333333;font-size: 14px;margin-left: 26px;">充值方式</span>
      </div>


      <div style="margin-top: 18px;padding-left: 26px;">
        <!--                <el-radio v-model="radio1" label="1" border>支付宝支付</el-radio>
                        <el-radio v-model="radio1" label="2" border>微信支付</el-radio>-->
        <el-radio v-model="radio1" label="3" border>余额支付</el-radio>
      </div>

      <div style="margin-top: 36px;"><span style="color: #333333;font-size: 14px;margin-left: 26px;">当前余额</span>
      </div>
      <div style="margin-top: 12px;"><span
          style="color: #333333;font-size: 18px;margin-left: 26px;">月结额度剩余：{{ userDetail.remainingLimit }}元</span>
      </div>
      <div style="margin-top: 12px;"><span
          style="color: #333333;font-size: 18px;margin-left: 26px;">账户余额：{{ userDetail.accountBalance }}元</span>
      </div>
      <div style="margin-top: 12px;"><span
          style="color: #333333;font-size: 18px;margin-left: 26px;">抵扣额度：{{ userDetail.deductionLimit }}元</span>
      </div>

      <el-button type="primary" @click="buynow"
                 style="background: #303030;margin-left: 26px;margin-top: 36px;"><span
          style="font-size: 14px;color: #FFE56D">立即支付</span></el-button>
    </el-drawer>
  </div>
</template>

<script>
// 员工列表
const emp = [
  {
    title: '序号',
    dataIndex: '',
    key: 'rowIndex',
    width: 60,
    align: 'center',
    customRender: function (t, r, index) {
      return parseInt(index) + 1
    }
  },
  {
    title: '采购项',
    align: "center",
    dataIndex: 'departName'
  },
  {
    title: '员工姓名',
    align: "center",
    dataIndex: 'customerName'
  },
  {
    title: '员工工号',
    align: "center",
    dataIndex: 'customerCode'
  },
  {
    title: '产品',
    align: "center",
    dataIndex: 'productName'
  },
  {
    title: '售后类型',
    align: "center",
    dataIndex: 'afterType',
    customRender: function (text) {
      if (text == '0') {
        return '正常'
      } else if (text == '1') {
        return '返修'
      } else if (text == '2') {
        return '重做'
      }
    }
  },
  /*{
      title: '操作',
      align: "center",
      dataIndex: 'fabricName'
  },*/
]
const column2 = [{
  dataIndex: 'k1',
  key: 'k1',
  title: '序号',
},
  {
    title: '员工部门',
    dataIndex: 'k2',
    key: 'k2',
  },
  {
    title: '员工姓名',
    dataIndex: 'k3',
    key: 'k3',
  },
  {
    title: '员工编号',
    key: 'k4',
    dataIndex: 'k4'
  },
  {
    title: '产品',
    key: 'k5',
    dataIndex: 'k5'
  },
  {
    title: '售后类型',
    key: 'k6',
    dataIndex: 'k6',
    scopedSlots: {
      customRender: 'k6'
    },
  },
  {
    title: '操作',
    key: 'k7',
    dataIndex: 'k7',
    scopedSlots: {
      customRender: 'k7'
    },
  }
];
// 面料列表表头
const fabricTitle = [
  {
    title: '序号',
    dataIndex: '',
    key: 'rowIndex',
    width: 60,
    align: 'center',
    customRender: function (t, r, index) {
      return parseInt(index) + 1
    }
  },
  {
    title: '面料名称',
    align: "center",
    dataIndex: 'fabricCode'
  },
  {
    title: '米数',
    align: "center",
    dataIndex: 'mishu',
    scopedSlots: {
      customRender: 'k3'
    },
  },
  {
    title: '阶梯价',
    align: "center",
    dataIndex: 'fabricPrice'
  },
  {
    title: '客户折扣',
    align: "center",
    dataIndex: 'kehuzk',
    customRender: function (text) {
      if (text == '1') {
        return '100%'
      } else {
        return (Number(text) * 100) + "%"
      }
    }
  },
  {
    title: '折后单价',
    align: "center",
    dataIndex: 'afterPrice'
  },
  {
    title: '总金额',
    align: "center",
    dataIndex: 'allPrice'
  },
]
const columns1 = [{
  dataIndex: 'k1',
  key: 'k1',
  title: '序号',
},
  {
    title: '面料',
    dataIndex: 'k2',
    key: 'k2',
  },
  {
    title: '米数',
    dataIndex: 'k3',
    key: 'k3',
    scopedSlots: {
      customRender: 'k3'
    },
  },
  {
    title: '标准单价',
    key: 'k4',
    dataIndex: 'k4'
  },
  {
    title: '阶梯折扣',
    key: 'k5',
    dataIndex: 'k5'
  },
  {
    title: '客户折扣',
    key: 'k6',
    dataIndex: 'k6',
    scopedSlots: {
      customRender: 'k6'
    },
  },
  {
    title: '折后单价',
    key: 'k7',
    dataIndex: 'k7',
    scopedSlots: {
      customRender: 'k7'
    },
  },
  {
    title: '总金额',
    key: 'k8',
    dataIndex: 'k8'
  },
];
const data1 = [{
  k1: '1',
  k2: '销售部',
  k3: '支彬',
  k4: 'ASIO01',
  k5: '西装上衣',
  k6: '返修',
  k7: '查看返修参数'
}]
const data2 = [{
  k1: '1',
  k2: 'UIYHL003',
  k3: '1',
  k4: '400元/米',
  k5: '80%',
  k6: '95%',
  k7: '304元/米',
  k8: '自动计算金额'
}]

function getBase64(file) {
  return new Promise((resolve, reject) => {
    const reader = new FileReader();
    reader.readAsDataURL(file);
    reader.onload = () => resolve(reader.result);
    reader.onerror = error => reject(error);
  });
}

// @ is an alias to /src
import locale from 'ant-design-vue/es/date-picker/locale/zh_CN';
import {getAction, postAction} from "../../api/manage";

export default {
  name: 'MyAfterSales',
  data() {
    return {
      selectPro: {}, // 选中的需要售后的产品
      empCode: '', // 员工工号
      ProList: [], // 产品列表
      reason: '', // 售后原因
      drawer: false, // 支付弹框默认不显示
      myflag: true, // 先不显示价格
      radio1: '', // 支付方式
      dialogImageUrl: '',//上传的图片路径
      afterType: '1', // 售后类型
      autohor_token: localStorage.getItem("token"), //token
      smallProCode: '',// 小产品编码
      detail: {},// 团订订单基本信息
      emplist: [], // 员工列表
      afterBodySize: [], // 返修尺寸列表
      afterOrder: '',// 创建的售后订单编号
      pricedata: '',// 本次返修价格
      lastAfterPrice: '', // 计算之后的返修价格
      userDetail: {}, // 当前账户详情
      url: {
        detail: '/teamOrder/getBaseTeamOrderDetail',
        userDetail: '/fabricAndOther/getUserDetail', // 查余额
        emplist: '/teamOrder/listAfterEmp', // 员工数据
        afterSize: '/teamOrder/listAftersize', // 获取返修列表
        saveAfter: '/teamOrder/saveAfter',// 保存返修数据
        saveRedo: '/teamOrder/saveRedo',// 保存重做数据
        getSmallPro: '/teamOrder/getSmallPro',// 获得小产品数据
        getFabricList: '/teamOrder/getFabricList',// 获得小产品下面料列表
        createAfterOrder: '/teamOrder/createAfterOrder',// 创建一条售后订单
        listBodySize: '/teamOrder/listBodySize',// 选择重做，真正的尺寸列表
        getAfterPrice: '/teamOrder/getAfterPrice',// 查询本次返修的价格
        updateTeamOrder: '/teamOrder/updateTeamOrder',// 提交返修
        checkAfterPrice: '/teamOrder/checkAfterPrice',// 计算本次返修的总价格
        getSmallProductListByEmpCode: '/teamOrder/getSmallProductListByEmpCode',// 根据员工工号获取产品列表
      },
      smallpro: {}, // 小产品对象
      fabricList: [],// 面料裂变
      emp,
      locale,
      fabricTitle,
      previewVisible: false,
      previewImage: '',
      fileList: [],
      idx: 1,
      column2,
      columns1,
      data1,
      data2
    }
  },
  created() {
    this.getDetail()
    this.createAafterOrder()
    this.getuserDetail()
  },
  methods: {

    /**
     * 根据员工工号获取产品列表
     */
    getSmallProductListByEmpCodeFunc() {
      getAction(domain.publicUrl + this.url.getSmallProductListByEmpCode, {
        'orderSn': this.$route.query.sn,
        'code': this.empCode
      }).then(res => {
        if (res.data.code == '0') {
          this.ProList = res.data.data
        }
      })
    },

    // 查询用户详情
    getuserDetail() {
      getAction(domain.publicUrl + this.url.userDetail, {
        'token': this.autohor_token
      }).then(res => {
        if (res.data.code == '0') {
          this.userDetail = res.data.data
        }
      })
    },

    /**
     * 计算本次返修的总价格
     */
    checkAfterPriceFunc() {
      getAction(domain.publicUrl + this.url.checkAfterPrice, {
        'token': this.autohor_token,
        'afterCode': this.afterOrder
      }).then(res => {
        if (res.data.code == '0') {
          this.myflag = false
          this.lastAfterPrice = res.data.price
          this.$message.success("计算成功")
        } else {
          this.$message.warning("计算失败")
        }
      })
    },

    // 进入当前页面立即创建售后订单
    createAafterOrder() {
      getAction(domain.publicUrl + this.url.createAfterOrder, {
        'token': this.autohor_token,
        'orderSn': this.$route.query.sn
      }).then(res => {
        if (res.data.code == '0') {
          this.afterOrder = res.data.data
        }
      })
    },

    // 获得小产品信息
    getSmallPro() {
      getAction(domain.publicUrl + this.url.getSmallPro, {
        'token': this.autohor_token,
        'code': this.smallProCode
      }).then(res => {
        if (res.data.code == '0') {
          this.smallpro = res.data.data
        }
      })
    },

    // 获取订单基本信息
    getDetail() {
      getAction(domain.publicUrl + this.url.detail, {
        'token': this.autohor_token,
        'orderSn': this.$route.query.sn
      }).then(res => {
        if (res.data.code == '0') {
          this.detail = res.data.data
        }
      })
    },

    // 查询员工列表
    getemp() {
      getAction(domain.publicUrl + this.url.emplist, {
        'token': this.autohor_token,
        'afterCode': this.afterOrder
      }).then(res => {
        if (res.data.code == '0') {
          this.emplist = res.data.data
        }
      })
    },

    // 获取返修尺寸列表和重做尺寸列表
    getAfterSize() {
      // 如果是返修，查返修尺寸表
      if (this.afterType == '1') {
        getAction(domain.publicUrl + this.url.afterSize, {
          'token': this.autohor_token,
          'code': this.smallProCode
        }).then(res => {
          if (res.data.code == '0') {
            this.afterBodySize = res.data.data
          } else {
            this.$message.warning("产品不存在")
          }
        })
      } else if (this.afterType == 0) {
        // 如果是重做，查询真正的身体尺寸
        getAction(domain.publicUrl + this.url.listBodySize, {
          'token': this.autohor_token,
          'code': this.smallProCode
        }).then(res => {
          if (res.data.code == '0') {
            this.afterBodySize = res.data.data
          }
        })
      }
    },

    // 保存返修数据或重做数据
    saveAfterSize() {
      // 如果当前是返修，进行返修的操作
      if (this.afterType == 1) {
        postAction(domain.publicUrl + this.url.saveAfter, {
          'token': this.autohor_token,
          'fanxiu': this.afterBodySize, // 返修尺寸列表
          'code': this.smallProCode, // 小产品编号
          'afterCode': this.afterOrder, // 售后订单号
          'fabric': this.fabricList, // 面料列表
          'img': this.dialogImageUrl, // 售后图片
          'reason': this.reason // 售后原因
        }).then(res => {
          if (res.data.code == '0') {
            this.$message.success("保存成功")
            this.getemp()
          } else {
            this.$message.warning(res.data.data)
          }
        })
      } else if (this.afterType == 0) {
        postAction(domain.publicUrl + this.url.saveRedo, {
          'token': this.autohor_token,
          'fanxiu': this.afterBodySize, // 返修尺寸列表
          'code': this.smallProCode, // 小产品编号
          'afterCode': this.afterOrder, // 售后订单号
          'fabric': this.fabricList, // 面料列表
          'img': this.dialogImageUrl, // 售后图片
          'reason': this.reason // 售后原因
        }).then(res => {
          if (res.data.code == '0') {
            this.$message.success("保存成功")
          } else {
            this.$message.warning(res.data.data)
          }
        })
      }

    },

    // 获取小产品下面料列表
    getFabricList() {
      getAction(domain.publicUrl + this.url.getFabricList, {
        'token': this.autohor_token,
        'code': this.smallProCode,
        'orderSn': this.$route.query.sn,
      }).then(res => {
        if (res.data.code == '0') {
          this.fabricList = res.data.data
          // 如果是返修，不需要面料
        }
      })
    },

    /**
     * 售后的支付接口
     */
    buynow() {
      if (this.radio1 == '') {
        // this.$message.warning("请选择支付方式!")
        this.$notify.warning({
          title: "提示",
          message: '请选择支付方式',
          duration: 1500,
        });
        /*this.applymethod = '0';*/
        return;
      } else if (this.radio1 == '1') {
        this.$message.warning("正在开发中")
        return;
      } else if (this.radio1 == '2') {
        /*this.applymethod = '2';*/
        this.$message.warning("正在开发中")
        return;
      } else if (this.radio1 == '3') {
        getAction(domain.publicUrl + this.url.updateTeamOrder, {
          'token': this.autohor_token,
          'orderSn': this.$route.query.sn,
          'afterCode': this.afterOrder,
          'money': this.lastAfterPrice,
          'reason': this.reason
        }).then(res => {
          if (res.data.code == '0') {
            // this.$message.success("提交成功")
            this.$notify.success({
              title: "提示",
              message: "支付成功",
              duration: 1500,
            });
            this.$router.push({path: '/my-order'})
          } else if (res.data.code == '-2') {
            this.$notify.warning({
              title: "提示",
              message: "提交失败",
              duration: 1500,
            });
            // this.$message.warning("余额不足，请充值")
          }
        })
      }
    },

    // 提交订单
    updateOrder() {
      if (this.myflag == false) {
        this.drawer = true
      } else {
        this.$message.warning("请先计算价格")
      }
    },

    // 获取本次售后价格 (不用)
    getAfterPrice() {
      getAction(domain.publicUrl + this.url.getAfterPrice, {
        'token': this.autohor_token,
        'afterOrder': this.afterOrder,
        'orderSn': this.$route.query.sn
      }).then(res => {
        if (res.data.code == 0) {
          this.pricedata = res.data.data
          this.getemp()
        }
      })
    },

    // 用于计算返修面料的价格
    getAfterFabricPrice(redord) {
      // 更新面料数据
      getAction(domain.publicUrl + this.url.getFabricList, {
        'token': this.autohor_token,
        'code': this.smallProCode,
        'orderSn': this.$route.query.sn,
        'mishu': redord.mishu
      }).then(res => {
        if (res.data.code == '0') {
          this.myflag = true
          this.fabricList = res.data.data
          redord.allPrice = redord.mishu * redord.afterPrice
        }
      })
    },

    // 上传图片
    handlePictureCardPreview(file) {
      this.dialogImageUrl = file.url;
      this.dialogVisible = true;
    },
    handleRemove(file, fileList) {
      // console.log(file, fileList);
    },
    //上传图片成功函数
    handleSuccess(response, file, fileList) {
      var result = response;
      // this.dialogImageUrl += result.data + ",";
      this.dialogImageUrl = result.data;
    },
    handleExceed(files, fileList) {
      // this.$message.warning(`当前限制选择 3 个文件，本次选择了 ${files.length} 个文件，共选择了 ${files.length + fileList.length} 个文件`);
      this.$message.warning("上传文件超出限制");
    },

    // 界面效果
    select: function (i) {
      this.idx = i
    },
    handleCancel() {
      this.previewVisible = false;
    },
    async handlePreview(file) {
      if (!file.url && !file.preview) {
        file.preview = await getBase64(file.originFileObj);
      }
      this.previewImage = file.url || file.preview;
      this.previewVisible = true;
    },
    handleChange({
                   fileList
                 }) {
      this.fileList = fileList;
    },
  },
  mounted() {
    // 切换页面时滚动条自动滚动到顶部
    window.scrollTo(0, 0);
  }
}
</script>

<style scoped lang="scss">
.roder-details {
  width: 80%;
  margin: 0 auto;
  background: #fff;
  margin-top: 20px;
  padding: 20px 35px;

  .inputs1 {
    width: 217px;
    height: 42px;
    display: flex;
    align-items: center;
    border: 1px solid #CCCCCC;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 20px;
    margin-right: 20px;

    p {
      padding: 0 5px;
      color: #fdf538;
      background-color: #575757;
      font-size: 15px;
      min-width: 58px;
      text-align: center;
      line-height: 42px;
      border-radius: 3px;
      margin-bottom: 0px;
    }

    input {
      width: 100%;
      height: 100%;
      border: none;
      outline: none;
      padding-left: 10px;
    }

    span {
      color: #333;
      font-size: 13px;
      padding-right: 10px;
    }
  }

  .tabss-content {
    display: flex;
  }

  .btn-a {
    background-color: rgba(255, 236, 112, 1);
    width: 64px;
    height: 40px;
    color: #333;
    font-size: 15px;
    line-height: 40px;
    display: block;
    text-align: center;
    border-radius: 3px;
    cursor: pointer;
  }

  .tabss-content > div {
    min-width: 910px;
    flex-wrap: wrap;
    display: flex;
  }

  .tabss {
    display: flex;

    p {
      width: 112px;
      height: 34px;
      margin-right: 20px;
      background-color: rgba(249, 249, 249, 1);
      color: #333;
      font-size: 15px;
      line-height: 34px;
      text-align: center;
      cursor: pointer;

      &.active {
        color: rgb(253, 245, 56);
        background-color: rgba(87, 87, 87, 1);
        font-weight: 700;
      }
    }
  }

  .btn10 {
    width: 112px;
    height: 40px;
    background-color: rgba(13, 221, 108, 1);
    border-radius: 3px;
    line-height: 40px;
    text-decoration: none;
    color: #fff;
    text-align: center;
    display: block;

  }

  .btns {
    display: flex;
    justify-content: space-between;
    height: 36px;
    align-items: center;
    margin-bottom: 50px;

    div {
      display: flex;
    }

    a.b1 {
      background-color: #393939;
      width: 122px;
      height: 36px;
      color: rgb(255, 238, 58);
      font-size: 15px;
      line-height: 36px;
      text-align: center;
      display: block;
      border-radius: 3px;
    }

    a.b2 {
      background-color: #393939;
      width: 90px;
      height: 36px;
      color: #fff;
      font-size: 15px;
      line-height: 36px;
      text-align: center;
      display: block;
    }

    a.b3 {
      background-color: rgba(242, 242, 242, 1);
      width: 90px;
      height: 36px;
      color: #444;
      font-size: 15px;
      line-height: 36px;
      text-align: center;
      display: block;
    }
  }

  .info {
    padding-top: 30px;

    .inputs {
      div {
        display: flex;
        margin-bottom: 10px;

        p {
          width: 112px;
          padding: 2px 2px 2px 24px;
          background-color: rgba(249, 249, 249, 1);
          font-size: 15px;
          color: #333;
          display: flex;
          height: 36px;
          align-items: center;
          margin: 0px !important;
        }

        span {
          width: 114px;
          padding: 2px 2px 2px 24px;
          background-color: rgba(255, 255, 255, 1);
          font-size: 15px;
          color: #333;
          display: flex;
          font-weight: 100;
          height: 36px;
          align-items: center;
          margin-left: 3px;
          border-width: 1px;
          border-style: solid;
          cursor: pointer;
          border-color: rgba(242, 242, 242, 1);

          &:hover {
            font-weight: 600;
            color: #fff;
            background-color: rgba(159, 159, 159, 1);
          }
        }

        b {
          width: 61px;
          cursor: pointer;
          text-align: center;
          background-color: rgba(249, 249, 249, 1);
          font-size: 15px;
          color: #333;
          display: flex;
          font-weight: 100;
          height: 36px;
          align-items: center;
          justify-content: center;

          &:hover {
            font-weight: 600;
            color: #fff;
            background-color: rgba(159, 159, 159, 1);
          }
        }
      }
    }

    .img12 {
      border-width: 1px;
      border-style: solid;
      border-color: rgba(242, 242, 242, 1);
      width: 193px;
      min-width: 193px;
      margin-right: 30px;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      align-items: center;

      & > p:nth-child(2) {
        background-color: #4d4d4d;
        color: rgb(255, 236, 112);
        line-height: 16px;
        font-size: 13px;
        padding: 5px 13px;
        margin-bottom: 6px;
      }

      & > p:nth-child(3) {
        background-color: #4d4d4d;
        color: rgb(255, 236, 112);
        line-height: 16px;
        font-size: 13px;
        padding: 5px 10px;
      }

      img {
        width: 153px;
        height: 158px;
        position: relative;
        top: -10px;
      }
    }

    .table-css {
      position: relative;

      .bz {
        width: 447px;
        height: 63px;
        background: inherit;
        background-color: rgba(255, 221, 202, 1);
        position: absolute;
        right: 0px;
        top: -63px;
        display: flex;
        align-items: center;
        justify-content: center;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        flex-direction: column;

        p {
          width: 100%;
          color: rgb(251, 8, 8);
          font-size: 13px;
          padding-left: 10px;
          margin-bottom: 0px;
          line-height: 16px;
        }
      }
    }

    .btn {

      border-width: 0px;
      width: 112px;
      height: 40px;
      background: inherit;
      background-color: rgba(13, 221, 108, 1);
      border: none;
      border-radius: 3px;
      -moz-box-shadow: none;
      -webkit-box-shadow: none;
      box-shadow: none;
      font-family: 'PingFangSC-Medium', 'PingFang SC Medium', 'PingFang SC';
      font-weight: 500;
      font-style: normal;
      font-size: 15px;
      text-align: center;
      display: block;
      color: #fff;
      line-height: 40px;
      margin-top: 25px;
      margin-bottom: 60px;
      cursor: pointer;
    }

    .price {
      color: rgb(38, 38, 38);
      font-size: 16px;
      padding: 2px 2px 2px 24px;
      font-weight: 700;

      span {
        color: rgb(215, 1, 1);
      }

      margin: 35px 0px;
    }

    .price1 {
      color: rgb(38, 38, 38);
      font-size: 16px;
      font-weight: 400;
      padding: 2px 2px 2px 24px;

      span {
        color: rgb(215, 1, 1);
      }

      margin: 35px 0px;
    }

    .text1 {
      width: 533px;
      height: 105px;
      padding: 3px 2px 3px 2px;
      font-family: 'ArialMT', 'Arial';
      font-weight: 400;
      font-style: normal;
      font-size: 13px;
      text-decoration: none;
      letter-spacing: normal;
      color: #000000;
      vertical-align: none;
      text-align: left;
      text-transform: none;
      background-color: #f9f9f9;
      border-color: transparent;
      resize: none;
      outline: none;
      padding: 10px;
    }

    .tabs {
      .tab {
        margin-bottom: 10px;
        display: flex;

        h5 {
          width: 112px;
          padding: 2px 2px 2px 24px;
          background-color: rgba(249, 249, 249, 1);
          font-size: 15px;
          color: #333;
          display: flex;
          height: 36px;
          align-items: center;
          margin: 0px !important;
          margin-right: 6px !important;
        }

        .tab-content {
          height: 36px;
          display: flex;

          p {
            border: 1px solid rgb(242, 242, 242);
            min-width: 100px;
            height: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 15px;
            color: #333;
            font-size: 15px;
            margin-right: 6px;

            cursor: pointer;

            b {
              display: none;
              font-weight: 700;
            }

            &.active {
              color: rgb(255, 236, 112);
              font-weight: 700;
              background-color: rgb(74, 74, 74);
            }

            &:hover {
              b {
                display: block;
              }

              span {
                display: none;
              }
            }
          }
        }
      }
    }

    h3.title {
      height: 30px;
      line-height: 30px;
      position: relative;
      font-size: 16px;
      color: #333;
      font-weight: 700;
      margin-bottom: 25px;

      &:after {
        position: absolute;
        height: 100%;
        width: 5px;
        position: absolute;
        left: -35px;
        top: 0px;
        background-color: rgba(74, 74, 74, 1);
        content: "";
      }
    }

    .title2 {
      width: 112px;
      padding: 2px 2px 2px 24px;
      font-size: 15px;
      color: #333;
      display: flex;
      height: 36px;
      align-items: center;
      margin: 0px !important;
      margin-bottom: 10px !important;
      font-weight: 700;
    }

    .list {
      margin-bottom: 20px;

      .list-div {
        display: flex;
        flex-wrap: wrap;

        div {
          width: 33.3%;
          display: flex;
          height: 36px;
          align-items: center;

          p {
            width: 112px;
            padding: 2px 2px 2px 24px;
            background-color: rgba(249, 249, 249, 1);
            font-size: 15px;
            color: #333;
            display: flex;
            height: 36px;
            align-items: center;
            margin: 0px !important;
          }

          span {
            width: calc(100% - 112px);
            padding: 2px 2px 2px 24px;
            font-size: 15px;
            color: #333;
            display: flex;
            height: 36px;
            align-items: center;

            &.b {
              font-weight: 700;
            }
          }
        }
      }
    }
  }
}

.nrm-six {
  display: flex;
  flex-wrap: wrap;

  .nrms-ipt {
    width: 200px;
    box-sizing: border-box;
    padding-left: 55px;
    margin-top: 20px;
    margin-right: 20px;
  }

  .nrmsi-label {
    display: inline-block;
    text-align: center;
    line-height: 40px;
    width: 85px;
    height: 40px;
    background: #2d2d2d;
    border-radius: 3px;
    color: #ffec70;
    position: relative;
    left: -5px;
  }

  .nrmsi-right {
    line-height: 40px;
    display: inline-block;
  }
}
</style>
